class DonePlugin {
  constructor(options){
    this.options = options
  }
  // webpack启动的时候，会有一实例化compiler，它贯穿webpack的这个生命周期
  apply(compiler){
    compiler.hooks.done.tap('DonePlugin', (stats)=> {

    })
    compiler.hooks.done.tapSync('DonePlugin', (stats, callback) => {
      callback()

    })
    compiler.hooks.done.tapPromise('DonePlugin', (stats, callback) => {
      callback()

    })
    console.log(compiler,'compiler')

  }
}

module.exports = DonePlugin;